package com.authine.cloudpivot.util.pageUtil;

import lombok.Data;

@Data
public class Page {
    private int pageNum = 1;// 页码

    private int pageSize = 10;// 页大小

    /**
     * 获得起始记录的下标
     *
     * @return
     */
    public int getStartIndex() {
        return (this.pageNum - 1) * this.pageSize;
    }


}
